package edu.fight.utils.jwt;

public enum JwtConstant {
   JWT_KEY_ID("id","jwt用户id"),
   JWT_KEY_USER_NAME("username","jwt用户名称");

    private String jwtCode;
    private String jwtValue;


    JwtConstant(String jwtCode, String jwtValue) {
        this.jwtCode=jwtCode;
        this.jwtValue=jwtValue;
    }

    public String getJwtCode() {
        return this.jwtCode;
    }

    public String getJwtValue() {
        return this.jwtValue;
    }

    public String getDescription() {
        return String.format("%s %s", this.jwtCode,this.jwtValue);
    }

    @Override
    public String toString() {
        return this.jwtCode;
    }
}